
<script setup>
import 'ant-design-vue/dist/reset.css';
	import { watch } from "vue";
	import { RouterView } from 'vue-router';
	import router from './router';
	import { useAdminerStore } from "./stores/adminer.js";

	const adminerStore = useAdminerStore();
	if (!adminerStore.adminer.username)
		router.push("/login");
	else
		router.push("/admin");

	watch(adminerStore.adminer, function(newV, _oldV) {
		console.log(newV);
		if (newV)
			router.push("/admin");
	});
</script>


<template>
	<RouterView class="fullPage"/>
</template>

<style>
	.fullPage {
		position: fixed;
		left: 0%;
		top: 0%;
		width: 100%;
		height: 100%;
	}
</style>


